package org.alvin.ocpp.server;

import java.beans.PropertyChangeSupport;

public abstract class OcppJsonServer extends PropertyChangeSupport {
    public OcppJsonServer() {
        super("");
    }

    /**
     * 启动服务
     *
     * @param ip
     * @param port
     */
    public abstract void start(String ip, int port) throws Exception;

    /**
     * 停止服务
     */
    public abstract void stop();

    /**
     * 触发日志
     * @param objects
     */
    protected void logConsole(Object... objects) {
        this.firePropertyChange("log", false, objects);
    }


}
